package com.lebang.service.cences;

import com.lebang.domain.CencesSdkAdCount;
import com.lebang.example.CencesSdkAdCountExample;
import com.lebang.mapper.CencesSdkAdCountMapper;
import com.lebang.service.BaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author ljx
 */
@Service
public class CencesSdkAdCountService extends BaseService<CencesSdkAdCount,Integer, CencesSdkAdCountExample> {
    @Autowired
    private CencesSdkAdCountMapper mapper;

    /**
     * 封禁
     * @param memberId
     * @param sdkKey
     * @return
     */
    public int banned(String memberId, String sdkKey) {
        return mapper.banned(memberId,sdkKey);
    }

    /**
     * 解封
     * @param memberId
     * @param sdkKey
     * @return
     */
    public int deblocking(String memberId, String sdkKey) {
        return mapper.deblocking(memberId,sdkKey);
    }
}
